// 获取批量添加子集的模版数据

import {
    ajax,
    toast
} from 'nc-lightapp-front';


export default (data) => {

    return new Promise((resolve, reject) => {
        ajax({
            url: '/nccloud/hrhi/psndoc/PsndocBatchAddSubSetInitAction.do',
            method: 'post',
            data: data,
            success: (res) => {
                resolve(res);
            },
            error: (err) => {
                toast({
                    color: 'danger',
                    content: err.message
                });
                reject(err);
            }
        });
    });

}
